package com.library.bookmanagement.mapper;

import com.library.bookmanagement.entity.ReaderKey;
import com.library.bookmanagement.entity.Reserve;

import java.util.Date;
import java.util.List;

/**
 * @author ：ZXM
 * @date ：Created in 2020/5/8 16:52
 * @description：t_reserve数据表映射接口
 */
public interface ReserveMapper {
    int deleteByPrimaryKey(ReaderKey key);

    int insert(Reserve record);

    int insertSelective(Reserve record);

    Reserve selectByPrimaryKey(ReaderKey key);

    int updateByPrimaryKeySelective(Reserve record);

    int updateByPrimaryKey(Reserve record);

    Integer selectCountByBookId(Integer bookId);

    List<Reserve> selectByUserId(Integer userId);

    List<Reserve> selectByScheduled(Date date, Date twoDate);

    void deleteByScheduled(Date date);

    List<Integer> selectAllBookId();

    List<Integer> selectByAllUserId(Integer bookId);
}